package com.hejing.抽象类与抽象方法;

/**
 * ClassName: Person
 * Package: com.hejing.抽象类与抽象方法
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-29 10:23
 * @Version: 1.0
 */
public abstract class Person {
    String name;
    int age;

    public Person(){}

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public abstract void eat();  // 表明此方法是一个抽象方法

    public abstract void sleep();


}























